
#ifndef __ALL_H__
#define __ALL_H__

#include "LIB_CONFIG.h"
#include "main.h"

#include <ADC.h>
#include <PWM.h>
#include <system.h>
#include <test.h>
#include <stdarg.h>
#include <qfet01.h>

#define ticker_timer TIMER0
#define key_up 67
#define key_down 61

#define led_pass 53
#define led_err 05

#define test_pass_led P53
#define test_error_led P05
#define test_sw_up P67
#define test_sw_down P61

#define vol_io P64
#define f1_io P66
#define f2_io P65

#define f1_up P47
#define f1_down P11
#define f2_up P63
#define f2_down P10

#define relay_k1 P02
#define relay_k2 P03
#define relay_k3 P04
#define relay_k4 P52

#define pin1_pmu P32
#define pin2_pmu P34
#define pin3_pmu P51
#define pin4_pmu P36
#define pin5_pmu P70
#define pin6_pmu P72
#define pin7_pmu P41
#define pin8_pmu P43
#define pin9_pmu P20
#define pin10_pmu P22
#define pin11_pmu P24
#define pin12_pmu P27
#define pin13_pmu P75
#define pin14_pmu P77
#define pin15_pmu P46
#define pin16_pmu P01

#define pin1_fun P33
#define pin2_fun P50
#define pin3_fun P35
#define pin4_fun P37
#define pin5_fun P71
#define pin6_fun P73
#define pin7_fun P42
#define pin8_fun P44
#define pin9_fun P21
#define pin10_fun P23
#define pin11_fun P25
#define pin12_fun P26
#define pin13_fun P74
#define pin14_fun P76
#define pin15_fun P45
#define pin16_fun P00

#endif
